package ss.pku.meeting.dc;

import javax.sql.CommonDataSource;
import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import lava.rt.persistence.sql.Criterias;

@Component
public class MeetingDataContextRepository extends MeetingDataContextBase{

	@Autowired
	private DataSource dataSource;
	
	@Override
	protected Criterias getCriterias() {
		// TODO Auto-generated method stub
		return Criterias.mysql;
	}

	@Override
	protected CommonDataSource getReadDataSource() {
		
		return this.dataSource;
	}

	@Override
	protected CommonDataSource getWriteDataSource() {
		
		return this.dataSource;
	}

}
